﻿@model KurupiraApp.Models.Grupo

@{
    ViewBag.Title = "Edit";
}

<div class="container-fluid">
        <div class="row-fluid">
            <div class="span4">
                @RenderPage("partial/sidenavmenu.cshtml")
            </div>
            <div class="span8">
                @using (Html.BeginForm()) {
                    @Html.AntiForgeryToken()
                    @Html.ValidationSummary(true)

                    <fieldset>
                        <legend>Grupo</legend>

                        @Html.HiddenFor(model => model.GrupoID)

                        <label>
                            Título
                        </label>
                        <div class="editor-field">
                            @Html.TextBox("titulo", Model.titulo ,new {Class = "input-xxlarge" })
                            @Html.ValidationMessageFor(model => model.titulo)
                        </div>

                        <label>
                            Descrição
                        </label>
                        <div class="editor-field">
                            @Html.TextArea("desc", Model.desc, new {Class = "input-xxlarge" })
                            @Html.ValidationMessageFor(model => model.desc)
                        </div>

                        <p>
                            <input type="submit" value="Save" />
                        </p>
                    </fieldset>
                }

            </div>
        </div>
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
